package org.esti.service;

import org.esti.model.Book;
import org.esti.model.KnowledgeField;
import org.springframework.web.multipart.MultipartFile;

import java.util.List;

/**
 * @author Artem Loginov (logart)
 */
public interface BookService {
    Book getBook(long id);

    List<Book> getUserBooks(String login);

    List<Book> getKnowledgeFieldBooks(KnowledgeField knowledgeFieldId);

    void addBook(Book book, MultipartFile file);

    void deleteBook(Book book);

    List<Book> getBooks();

    List<Book> getLevelBooks(long id);
}
